package com.linck.im.client.handler;

import com.linck.im.model.proto.ProtoMsg;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import lombok.extern.slf4j.Slf4j;

/**
 * 好友列表处理器
 *
 * @author: linck
 * @create: 2021-01-26
 */
@Slf4j
public class ClientFriendsHandler extends SimpleChannelInboundHandler<ProtoMsg.Friends> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, ProtoMsg.Friends friends) throws Exception {
        // 未作复杂处理，直接打印
        log.info("好友列表 \n{}", friends.getFriendList().toString());
    }
}
